package com.zxkj.commonpatrol.model.entity;

import com.zxkj.commonpatrol.model.response.PointPatrolDetailResponse;

import java.util.List;

public class PointEvent {

    public int Type;

    public int getType() {
        return Type;
    }

    public void setType(int type) {
        Type = type;
    }

    public PointPatrolDetailResponse.PointPatrolDevice Devices;//巡检点巡检的设备信息
    public   PointPatrolDetailResponse.PointPatrolEvent Events;  //巡检点巡检的Event信息

    public PointPatrolDetailResponse.PointPatrolDevice getDevices() {
        return Devices;
    }

    public void setDevices(PointPatrolDetailResponse.PointPatrolDevice devices) {
        Devices = devices;
    }

    public PointPatrolDetailResponse.PointPatrolEvent getEvents() {
        return Events;
    }

    public void setEvents(PointPatrolDetailResponse.PointPatrolEvent events) {
        Events = events;
    }

    public static  class PointPatrolDevice {
        public String DevCode;  //设备编号
        public String DevName;  //设备名称
        private int DevPatrolResult;
        public String RSName;

        public String getRSName() {
            return RSName;
        }

        public void setRSName(String RSName) {
            this.RSName = RSName;
        }

        public String getRSCode() {
            return RSCode;
        }

        public void setRSCode(String RSCode) {
            this.RSCode = RSCode;
        }

        public String RSCode;
        public int getDevPatrolResult() {
            return DevPatrolResult;
        }

        public void setDevPatrolResult(int devPatrolResult) {
            DevPatrolResult = devPatrolResult;
        }

        public String getDevCode() {
            return DevCode;
        }

        public void setDevCode(String devCode) {
            DevCode = devCode;
        }

        public String getDevName() {
            return DevName;
        }

        public void setDevName(String devName) {
            DevName = devName;
        }

        public String getCategoryNo() {
            return CategoryNo;
        }

        public void setCategoryNo(String categoryNo) {
            CategoryNo = categoryNo;
        }

        public String getCategoryName() {
            return CategoryName;
        }

        public void setCategoryName(String categoryName) {
            CategoryName = categoryName;
        }

        public String getDevLocation() {
            return DevLocation;
        }

        public void setDevLocation(String devLocation) {
            DevLocation = devLocation;
        }

        public List<PointPatrolDetailResponse.PointPatrolDevice.DeviceProperty> getDevPropertys() {
            return DevPropertys;
        }

        public void setDevPropertys(List<PointPatrolDetailResponse.PointPatrolDevice.DeviceProperty> devPropertys) {
            DevPropertys = devPropertys;
        }

        public String getLastPatrolDateTime() {
            return LastPatrolDateTime;
        }

        public void setLastPatrolDateTime(String lastPatrolDateTime) {
            LastPatrolDateTime = lastPatrolDateTime;
        }

        public String getLastPatrolUser() {
            return LastPatrolUser;
        }

        public void setLastPatrolUser(String lastPatrolUser) {
            LastPatrolUser = lastPatrolUser;
        }

        public int getQuestTotal() {
            return QuestTotal;
        }

        public void setQuestTotal(int questTotal) {
            QuestTotal = questTotal;
        }

        public int getNomalQuestCount() {
            return NomalQuestCount;
        }

        public void setNomalQuestCount(int nomalQuestCount) {
            NomalQuestCount = nomalQuestCount;
        }

        public String CategoryNo;  //设备所属类别编号
        public String CategoryName;  //设备所属类别名称
        public String DevLocation;  //设备位置

        public List<PointPatrolDetailResponse.PointPatrolDevice.DeviceProperty> DevPropertys;  //设备的自定义属性

        public String LastPatrolDateTime;  //上次巡查时间(yyyy/MM/dd hh:mm)
        public String LastPatrolUser;  //上次巡查用户
        public int QuestTotal;         //巡检问题总数
        public int NomalQuestCount;   //巡检问题正常的数量
        public static  class DeviceProperty {
            public String Code;    //属性编号
            public String Name;   //属性名称

            public String getCode() {
                return Code;
            }

            public void setCode(String code) {
                Code = code;
            }

            public String getName() {
                return Name;
            }

            public void setName(String name) {
                Name = name;
            }

            public int getType() {
                return Type;
            }

            public void setType(int type) {
                Type = type;
            }

            public int getIndex() {
                return Index;
            }

            public void setIndex(int index) {
                Index = index;
            }

            public List<String> getData() {
                return Data;
            }

            public void setData(List<String> data) {
                Data = data;
            }

            public String getValue() {
                return Value;
            }

            public void setValue(String value) {
                Value = value;
            }

            public int Type;    //属性类型(0:input  1:datetime 2:Combox)
            public int Index;    //UI上摆放顺序(从0开始)
            public List<String> Data;   //当为Combox时，此字段保存Combox下拉数据
            public String Value;   //属性值

        }

    }

    public static class PointPatrolEvent {
        public String Code;    //Event编号
        public String Name;   //Event名称
        private int EvtPatrolResult;
        public String EventLocation;  //Event 位置
        public String LastPatrolDateTime;  //上次巡查时间(yyyy/MM/dd hh:mm)
        public String LastPatrolUser;  //上次巡查用户
        public int QuestTotal;         //巡检问题总数
        public int NomalQuestCount;   //巡检问题正常的数量
        public String RSName;

        public String getRSName() {
            return RSName;
        }

        public void setRSName(String RSName) {
            this.RSName = RSName;
        }

        public String getRSCode() {
            return RSCode;
        }

        public void setRSCode(String RSCode) {
            this.RSCode = RSCode;
        }

        public String RSCode;
        public String getEventLocation() {
            return EventLocation;
        }

        public void setEventLocation(String eventLocation) {
            EventLocation = eventLocation;
        }

        public String getLastPatrolDateTime() {
            return LastPatrolDateTime;
        }

        public void setLastPatrolDateTime(String lastPatrolDateTime) {
            LastPatrolDateTime = lastPatrolDateTime;
        }

        public String getLastPatrolUser() {
            return LastPatrolUser;
        }

        public void setLastPatrolUser(String lastPatrolUser) {
            LastPatrolUser = lastPatrolUser;
        }

        public int getQuestTotal() {
            return QuestTotal;
        }

        public void setQuestTotal(int questTotal) {
            QuestTotal = questTotal;
        }

        public int getNomalQuestCount() {
            return NomalQuestCount;
        }

        public void setNomalQuestCount(int nomalQuestCount) {
            NomalQuestCount = nomalQuestCount;
        }

        public int getEvtPatrolResult() {
            return EvtPatrolResult;
        }

        public void setEvtPatrolResult(int evtPatrolResult) {
            EvtPatrolResult = evtPatrolResult;
        }

        public String getCode() {
            return Code;
        }

        public void setCode(String code) {
            Code = code;
        }

        public String getName() {
            return Name;
        }

        public void setName(String name) {
            Name = name;
        }

        public String getQuestsNo() {
            return QuestsNo;
        }

        public void setQuestsNo(String questsNo) {
            QuestsNo = questsNo;
        }

        public String getQuestsName() {
            return QuestsName;
        }

        public void setQuestsName(String questsName) {
            QuestsName = questsName;
        }

        public String QuestsNo;   //Event所包含的问题集编号
        public String QuestsName;   //Event所包含的问题集名称

    }
}
